package com.ice.common;

import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;


public class LogJson {
	
	public static String generateLog(LogBean logBean){
		Map<String , Object> map = new HashMap<String, Object>();
		ObjectMapper objectMapper = new ObjectMapper();
	    String json=null;
		try {
			json = objectMapper.writeValueAsString(logBean);
		} catch (JsonProcessingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return json;
	}
	
	
	
}
